package com.nwpu.server.learning.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nwpu.server.common.response.PageUtils;
import com.nwpu.server.learning.dao.ArticleCategoryDao;
import com.nwpu.server.learning.entity.ArticleCategoryEntity;
import com.nwpu.server.learning.service.ArticleCategoryService;
import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.nwpu.server.common.response.Query;
@Service("articleCategoryService")
public class ArticleCategoryServiceImpl extends ServiceImpl<ArticleCategoryDao, ArticleCategoryEntity> implements ArticleCategoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ArticleCategoryEntity> page = this.page(
                new Query<ArticleCategoryEntity>().getPage(params),
                new QueryWrapper<ArticleCategoryEntity>()
        );

        return new PageUtils(page);
    }

}